package pojo;

import org.apache.ibatis.annotations.Param;

public class Passenger {

    private String name;

    private  int id;

    private int age;

    private  Passport passport;


    public Passenger(){

    }

    public Passenger(String name, int id, int age, Passport passport) {
        this.name = name;
        this.id = id;
        this.age = age;
        this.passport = passport;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Passport getPassport() {
        return passport;
    }

    public void setPassport(Passport passport) {
        this.passport = passport;
    }

    @Override
    public String toString() {
        return "Passenger{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", age=" + age +
                ", passport=" + passport +
                '}';
    }
}
